package com.hmall.api.cart;

import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cart-service",path = "/carts")
public interface CartCilent {
    @DeleteMapping
    public void deleteCartItemByIds(@RequestParam("ids") List<Long> ids);

    @DeleteMapping("{id}")
    public void deleteCartItem(@Param("购物车条目id")@PathVariable("id") Long id);
}
